import Vue from 'vue'
import VueRouter from 'vue-router'
import AboutMe from '../components/main/aboutme/AboutMe.vue';
import Search from '../components/main/search/Search.vue';
import Food from '../components/main/food/Food.vue';
import Order from '../components/main/order/Order.vue';
import Login from '../components/main/lr/login/Login.vue'


Vue.use(VueRouter)

const routes =[
    {
        path: '/aboutme',
        component: AboutMe
    },
    {
        path: '/search',
        component: Search
    },
    {
        path: '/food',
        component: Food
    },
    {
        path: '/order',
        component: Order
    },
    {
        path: '/',
        redirect: '/food'
    },
    {
        path: '/login',
        component: Login
    }
]

export default new VueRouter({
    routes,
    mode: 'history'
})